package com.hsc.yalebao.adapter;

import android.content.Context;
import android.graphics.Bitmap.Config;
import android.support.v4.view.PagerAdapter;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.nostra13.universalimageloader.core.DisplayImageOptions;
import com.nostra13.universalimageloader.core.DisplayImageOptions.Builder;
import com.nostra13.universalimageloader.core.assist.ImageSize;
import java.util.ArrayList;

public class TouzhuViewPagerAdapter extends PagerAdapter
{
  private Context context;
  private LayoutInflater inflater;
  private ImageSize mImageSize;
  private DisplayImageOptions options;
  public ArrayList<View> views;

  public TouzhuViewPagerAdapter(ArrayList<View> paramArrayList, Context paramContext)
  {
    this.views = paramArrayList;
    this.context = paramContext;
    this.inflater = LayoutInflater.from(paramContext);
    this.mImageSize = new ImageSize(200, 200);
    this.options = new DisplayImageOptions.Builder().cacheInMemory(true).cacheOnDisk(true).resetViewBeforeLoading(true).showImageOnFail(0).bitmapConfig(Bitmap.Config.RGB_565).build();
  }

  public void destroyItem(ViewGroup paramViewGroup, int paramInt, Object paramObject)
  {
    paramViewGroup.removeView((View)paramObject);
  }

  public int getCount()
  {
    if (this.views == null)
      return 0;
    return this.views.size();
  }

  public int getItemPosition(Object paramObject)
  {
    return -2;
  }

  public Object instantiateItem(ViewGroup paramViewGroup, int paramInt)
  {
    View localView = (View)this.views.get(paramInt);
    paramViewGroup.addView(localView);
    return localView;
  }

  public boolean isViewFromObject(View paramView, Object paramObject)
  {
    return paramView == paramObject;
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.hsc.yalebao.adapter.TouzhuViewPagerAdapter
 * JD-Core Version:    0.6.2
 */